package admin

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

type BaseController struct {
}

func (u BaseController) Success(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"code":    200,
		"message": "成功",
	})
}

func (u BaseController) Error(c *gin.Context) {
	c.JSON(http.StatusBadRequest, gin.H{
		"code":    400,
		"message": "失败",
	})
}
